import request from "@/utils/request";

export const getSbList = (params) => {
  return request({
    url: "/api/vm-service/vm/search",
    method: "get",
    params,
  });
};

export const getSbCount = (params, innerCode, start, end) => {
  return request({
    url: `/api/order-service/report/skuCollect/${innerCode}/${start}/${end}`,
    method: "get",
    params,
  });
};

export const getSblxEdit = (data, id) => {
  return request({
    url: `/api/vm-service/vmType/${id}`,
    method: "put",
    data,
  });
};

export const getSblxDel = (id) => {
  return request({
    url: `/api/vm-service/vmType/${id}`,
    method: "delete",
  });
};
